<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <btn-a>
        <template slot="aa">
          <h3>标题一</h3>
          <h4>标题二</h4>
        </template>
        <template slot="bb">
          <p>内容一</p>
          <p>内容二</p>
        </template>
      </btn-a>
    
    </div>
    <script src="./vue.js"></script>
    <script>
       Vue.component("btn-a",{
        template:`<div><slot name="aa"></slot>
          <slot name="bb"></slot></div>`,
        data(){
          return{
            
          }
        },
      })
      const vm=new Vue({
        el:'#app',
        data:{},
        methods:{},
       })
    </script>
  </body>
</html>